package cn.iocoder.yudao.module.jky.controller.admin.goodscat.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 商品分类 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class GoodsCatBaseVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11")
    private Short catId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotNull(message = "名称不能为空")
    private String catName;

    @Schema(description = "关键词")
    private String keywords;

    @Schema(description = "简要说明", example = "你说的对")
    private String description;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "是否显示 Y显示 N不显示", requiredMode = Schema.RequiredMode.REQUIRED)
    private String isShow;

    @Schema(description = "图片/缩略图")
    private String img;

    @Schema(description = "父ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1843")
    @NotNull(message = "父ID不能为空")
    private Integer parentId;

    @Schema(description = "是否推荐/置顶 Y是 N否")
    private String isTop;

    @Schema(description = "类型1自营商城2积分商城", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer type;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private LocalDateTime createTime;
}
